/*
 * Benutzer: thomas
 * Datum: 20.03.2007
 * Zeit: 20:27
 * 
 */

using System;
using System.Runtime.InteropServices;

namespace Greenshot.UnmanagedHelpers
{
	/// <summary>
	/// Description of GDI32.
	/// </summary>
	public class GDI32
    {
        public const int SRCCOPY = 0x00CC0020; // BitBlt dwRop parameter
        [DllImport("gdi32.dll")]
        public static extern bool BitBlt(IntPtr hObject,int nXDest,int nYDest,
            int nWidth,int nHeight,IntPtr hObjectSource,
            int nXSrc,int nYSrc,int dwRop);
        [DllImport("gdi32.dll")]
        public static extern IntPtr CreateCompatibleBitmap(IntPtr hDC,int nWidth,
            int nHeight);
        [DllImport("gdi32.dll")]
        public static extern IntPtr CreateCompatibleDC(IntPtr hDC);
        [DllImport("gdi32.dll")]
        public static extern bool DeleteDC(IntPtr hDC);
        [DllImport("gdi32.dll")]
        public static extern bool DeleteObject(IntPtr hObject);
        [DllImport("gdi32.dll")]
        public static extern IntPtr SelectObject(IntPtr hDC,IntPtr hObject);
    }
}
